#pragma once
#include "nodes\Node.h"
#include "base\Controller.h"
#include "EventManager.h"
#include "addons\ScreenQuad.h"
#include "nodes\DynamicSpriteNode.h"
#include "addons\SpriteCounter.h"
#include "ui\UI.h"

class StartState : public ds::GameState , public ds::EventHandler {

public:
	StartState() : ds::GameState("Start") , timer(0.0f) {	
		gEngine->getEventManager().registerEventHandler(this);
	}
	~StartState(void) {}
	bool loadContent(ds::ResManager& resourceManager) {
		return true;
	}
	bool update(float elapsedTime) {
		return true;
	}
	bool onActivation();
	bool onDeactivation();		
	//
	void process(ds::EventBuffer& buffer);			
private:
	void toogleActions(const char* activateName,const char* decactivateName);
	float timer;
	ds::Vec3 m_Position;
	ds::UIDialog* m_StartDialog;	
};

